package com.github.caijh.mall.system.service;

import java.util.List;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.caijh.mall.common.PageReqBody;
import com.github.caijh.mall.handler.RouterPrefixHandler;
import com.github.caijh.mall.system.model.SystemAttachment;
import com.github.caijh.mall.upload.vo.FileResultVo;

public interface SystemAttachmentService extends IService<SystemAttachment>, RouterPrefixHandler {

    void create(FileResultVo file, Integer pid);

    void async();

    void updateCloudType(Integer attId, int type);

    IPage<SystemAttachment> page(Integer pid, PageReqBody pageReqBody);

    String clearPrefix(String attribute);

    List<SystemAttachment> getByEntity(SystemAttachment systemAttachment);

}
